package com.itbaizhan.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author spf
 * @date 2024/3/3
 * @time 20:55
 */
@Getter
@AllArgsConstructor
public enum CodeEnum {

    SUCCESS(200, "OK"),
    ERROR(500, "系统异常"),

    FIND_BANNER_ERROR(601, "轮播图查询失败"),
    FIND_HOT_PRODUCT_ERROR(602, "热销产品查询失败"),
    FIND_REMMENDATION_ERROR(603, "热门推荐查询失败"),
    FIND_DETAIL_ERROR(604, "商品详情查询失败"),
    SAVE_COMMENT_ERROR(605, "添加评论失败"),
    DEL_REDISKEY_ERROR(606, "删除redis中key失败"),
    SENDED_CODE_ERROR(607, "原验证码仍就有效，请不要重复申请验证码！"),
    EXPIRED_CODE_ERROR(608, "验证码已过期！"),
    CODE_ERROR(609, "验证码不匹配!");

    private final int code;

    private final String message;



}
